﻿using Microsoft.AspNetCore.Builder;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GYCTOAManagementSystemNewApi.OAManagementSystemExtensions.Middlewares
{
    public static class ResponseCompressionBuild
    {
        public static void UseResponseCompressionBuild(this IApplicationBuilder app)
        {
            if (app == null) throw new ArgumentNullException(nameof(app));
            //添加并使用
            app.UseResponseCompression();
        }

    }
}
